package com.dai.spec.common.enums;

public enum SelectStatus {
    SELECTED("0","已选"),
    RETIRED("1","已退");

    private final String code;
    private final String status;

    SelectStatus(String code,String status){
        this.code =code;
        this.status =status;
    }
    public String getCode()
    {
        return code;
    }

    public String getsStatus()
    {
        return status;
    }

    public static String getValueByCode(String code) {
        for (SelectStatus statusEnum : com.dai.spec.common.enums.SelectStatus.values()) {
            if (statusEnum.getCode().equals(code)) {
                return statusEnum.getsStatus();
            }
        }
        return null;
    }
}
